package org.jsbd.boss.dao;

import java.util.List;
import java.util.Map;

import org.jsbd.boss.common.DataGridModel;
import org.jsbd.boss.domian.EmailGroupBean;
import org.jsbd.boss.domian.EmailGroupRef;

public interface IEmailGroupDao {

	public void saveEmailGroup(EmailGroupBean emailGroup);

	public void updateEmailGroup(EmailGroupBean emailGroup);

	public EmailGroupBean getEmailGroup(EmailGroupBean emailGroup);

	public List<EmailGroupBean> getEmailGroupList(EmailGroupBean emailGroup);

	public Map<String, Object> getEmailGroupListPage(DataGridModel page, EmailGroupBean emailGroup);

	public Integer getEmailGroupCount(EmailGroupBean emailGroup);

	public void deleteEmailGroup(EmailGroupBean emailGroup);
	
	public Map<String, Object> getOutEmailListPage(DataGridModel page, EmailGroupRef form);

	public Map<String, Object> getInEmailListPage(DataGridModel page, EmailGroupRef form);
	
	public void saveEmailGroupRef(EmailGroupRef emailGroupRef);
	
	public void deleteEmailGroupRef(EmailGroupRef emailGroupRef);
	
    public void saveEmailGroupRef(List<EmailGroupRef> emailGroupRef);
	
	public void deleteEmailGroupRef(List<EmailGroupRef> emailGroupRef);
}
